<div class="right_side_operate_area">
	<div class="right_side_title left">
		<h2><?php echo $html->link($pname,"/projects/showinfo/".$pid)?></h2>
		<div class="clear"></div>
	</div>
   <?php 
    	$user=$session->read('User');
    	$isadd=$action->checkPermissions($user,"edit",$first_ownerid);
    	//if($user['isadmin'] || $user['isgroupadmin'])
    	if($isadd)
    	{
    		echo '<div class="right item_add_btn">';
			echo $html->link(__("Add",true),"editfollowinfo/");
			echo '</div>';
		}else{
			echo '<div class="right enableaction">';
			echo "<a>添加</a>";
			echo '</div>';
		}
	?>
    <?php  
	if($showpage==1)
	{
		if(isset($paging)){ echo $this->renderElement('pagination',$paging);} 
	}
	?>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
    <div class="detail_info_panel">
        <div class="items_list">
        	<table>
            	<tr>
                	<th><?php __("FollowinfoCtime")?></th>
                    <th><?php __("Myperson")?></th>
                    <th><?php __("Yourperson")?></th>
                    <th><?php __("Pcontent")?></th>
                    <th><?php __("Action")?></th>
                </tr>
                <?php 
                $cuser=$session->read('User');
				foreach($followinfos as $followinfo){
					$id=$followinfo["Followinfo"]["id"];
					echo "<tr class='per_list'>";
					echo "<td>".$html->link(date("Y-m-d",strtotime($followinfo["Followinfo"]["ctime"])),"/projects/showfollowinfo/".$id)."</td>";
					echo "<td>".$str->sub_len($followinfo["Followinfo"]["myperson"],15)."</td>";
					echo "<td>".$str->sub_len($followinfo["Followinfo"]["yourperson"],15)."</td>";
					$content=$followinfo["Followinfo"]["content"];
					echo "<td>"."<span title='".$content."'>".$str->sub_len($content,15)."</span>"."</td>";
					
					echo "<td>";
					//if($user['isadmin'] || $user['isgroupadmin'] || $second_ownerid==$user['id'])
					$ised=$action->checkPermissions($user,"edit",$first_ownerid);
					if($ised){
					echo $html->link(__("Edit",true),"/projects/editfollowinfo/".$id,null,null);
					}else{
						echo "<span class='enableaction'>编辑</span>";
					}
					//if($user['isadmin'] || $user['isgroupadmin'])
					if($ised)
					{
						echo $html->link(__("Delete",true),"/projects/delfollowinfo/".$id,array("onclick"=>"return doaction(this)"));
					}else{
						echo "<span class='enableaction'>删除</span>";
					}
					echo "</td>";
					echo "</tr>";
				}?>
            </table>
		</div>
	</div>
</div>
<?php echo $this->element('actionconfirm',array("title"=>"删除提示","message"=>"你确定要删除吗？")) ?>